package org.springdemo3.d1.test1;

import org.springframework.stereotype.Component;

@Component("userAction")
public class UserAction {

    public UserAction(){}


    public UserAction(UserAction userAction){
        this.userService=userService;
    }

    public UserService getUserService() {
        return userService;
    }
    public void setUserService(UserService userService) {
        this.userService = userService;
    }

//    @Autowired
//    @Qualifier("userService2")

    private UserService userService;
    public void index(){
        userService.getUserName(10);

    }
}